using System;
using System.Collections.Generic;

namespace MyHomeworkWebAPi.Models.ef
{
    /// <summary>
    /// 消息实体
    /// </summary>
    public partial class Message
    {
        /// <summary>
        /// 消息ID
        /// </summary>
        public Guid MessageId { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public Guid UserId { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        public string Content { get; set; } = null!;

        /// <summary>
        /// 是否已读（0：未读；1：已读）
        /// </summary>
        public byte IsRead { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 关联的用户
        /// </summary>
        public virtual User User { get; set; } = null!;
    }
} 